package com.example.entity;

import com.example.entity.parent.Parent;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;

@Data
@Entity
@Table(name = "sentence")
@ApiModel
public class Sentence extends Parent {

    @Column(name = "topic_id", length = 30)
    @ApiModelProperty("主题id")
    private String topicId;

    @Transient
    @ApiModelProperty("主题名")
    private String topicName;

    @Column(name = "content", length = 255)
    @ApiModelProperty("句子内容")
    private String content;

    @Transient
    @ApiModelProperty("是否被收藏")
    private boolean isCollection;

    @Transient
    @ApiModelProperty("标准录音时间")
    private int seconds;

}
